﻿import request from '/@/utils/request';
enum Api {
  AddFaceGroup = '/api/faceGroup/add',
  DeleteFaceGroup = '/api/faceGroup/delete',
  UpdateFaceGroup = '/api/faceGroup/update',
  SaveFaceGroup = '/api/faceGroup/save',
  PageFaceGroup = '/api/faceGroup/page',
  ExportFaceGroup = 'api/faceGroup/export',
  ImportUrl= 'api/faceGroup/import',
  downLoadTemplate = 'api/faceGroup/TemplateDown',
}

//导出人臉分組
export const exportFaceGroupExcel=(params?:any)=>
	request({
		url:Api.ExportFaceGroup,
		method:'post',
		data:params,
		responseType: 'blob'
	});

// 增加人臉分組
export const addFaceGroup = (params?: any) =>
	request({
		url: Api.AddFaceGroup,
		method: 'post',
		data: params,
	});

// 删除人臉分組
export const deleteFaceGroup = (params?: any) => 
	request({
			url: Api.DeleteFaceGroup,
			method: 'post',
			data: params,
		});

// 编辑人臉分組
export const updateFaceGroup = (params?: any) => 
	request({
			url: Api.UpdateFaceGroup,
			method: 'post',
			data: params,
		});

// 保存人臉分組
export const saveFaceGroup = (params?: any) => 
	request({
			url: Api.SaveFaceGroup,
			method: 'post',
			data: params,
		});

// 分页查询人臉分組
export const pageFaceGroup = (params?: any) => 
	request({
			url: Api.PageFaceGroup,
			method: 'post',
			data: params,
		});

export const importUrl = () => {return Api.ImportUrl;};
export const downLoadTemplate = ()=>{return Api.downLoadTemplate ;};



